<style>
    .pageFormContent dl dt {
        width: 100px;
    }
    
    .pageFormContent dl dd {
        width: 220px;
    }
</style>
<div class="pageContent">
    <form method="post" action="{:U('Supplier/insert')}" onsubmit="return validateCallback(this,dialogAjaxDone);">
		<input type='hidden' name='id' value='{$id}'/>
		<input type="hidden" name="mer_userid" value="{$mer_userid}"> 
		<div class="tabs" currentIndex="0" eventType="click">
		
		<div class="tabsHeader">
		<div class="tabsHeaderContent">
			<ul>
				<li><a href="javascript:;"><span>基本信息</span></a></li>
				{if $user_smw}
				<li><a href="javascript:;"><span>云采购</span></a></li>
				{/if}
				{if $user_o2o}
				<li><a href="javascript:;"><span>云购</span></a></li>
				{/if}
			</ul>
		</div>
	</div>
	<div class="pageFormContent nowrap" layoutH="97">
	<table width="100%" height="200" border="0">
		<tr height="30">
			<td align="right">供应商产品名称:&nbsp;</td>
			<td><span style="color:red">({$title})</span></td>
		</tr>
		<tr height="30">
			<td align="right">云酷商品ID:&nbsp;</td>
			<td><input name="keywords.id" value="0" type="text"/></td>
			
		</tr>
		<tr height="30">
			<td align="right">
				查询商品或ID:&nbsp;
			</td>
			<td>				
				<input type="text" class="autoinput" name="keywords.name" value="{$keywords}" style="width:120px;" postField="keywords" suggestFields="id,name" suggestUrl="{:U('Content/suggest',array('tn'=>'Product','fn'=>'id,name','field'=>'id,name'))}" lookupGroup="keywords"/>
			</td>
		</tr>
		<volist name="list" id="vo">	
		<tr height="30">
				<td align="right">已关联的产品:&nbsp;</td>
				<td>({$vo['name']})</td>
		</tr>
	    </volist>
	</table>
	</div>
		<!--<div class="pageFormContent nowrap" layoutH="97">

                <legend>
                    基本信息
                </legend>
		    <dl>
                <dt>
                    商品标题
                </dt>
                <dd>-->
				<!--ajax异步请求调取数据-->
				<!--	<input type="text" name="" value="{$title}"> 
					<input type="hidden" name="mer_userid" value="{$mer_userid}"> 
					<input name="keywords.id" value="0" type="text"/>
					<input type="text" class="autoinput" name="keywords.name" value="{$keywords}" style="width:120px;" postField="keywords" suggestFields="id,name" suggestUrl="{:U('Content/suggest',array('tn'=>'Product','fn'=>'id,name','field'=>'id,name'))}" lookupGroup="keywords"/>
                </dd>
            </dl>
			 <table class="table" layoutH="113">
                <tr>
                    <th width="22">
                        
                    </th>
                    <th width="60" orderField="id" {if $orderField=='id'}class="{$orderDirection}"{/if}>
					商品ID
                    </th>
                    <th width="200" orderField="username" {if $orderField=='username'}class="{$orderDirection}"{/if}>
					商品简介
                    </th>
                </tr>
                <volist name="list" id="vo">
					<tr>
                        <td>
                            <input name="ids" value="{$vo['id']}" type="checkbox">
                        </td>
                        <td>
                            {$vo['id']}
                        </td>
                        <td>
                           {$vo['name']}
                        </td>
					</tr>
				</volist>
			</table>-->
        </div>
        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit">
                                保存
                            </button>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="button">
                        <div class="buttonContent">
                            <button type="button" class="close">
                                取消
                            </button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
	</div>
</form>
	
</div>
<script>
$(function(){
//	$('form').ketchup();
//	$('div.tabsHeaderContent li').live({
//		"click":function(){
//			$('div.ketchup-error').css({"opacity": 0,"display":"none"});
//		}
//	});
//	$('button').live({"click":function(){
//			$('div.ketchup-error').css({"opacity": 0,"display":"none"});
//		}
//	});
});

</script>